package com.ymk.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ymk.base.BaseVO;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 权限
 * </p>
 *
 * @author 莫参商
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("rbac_perm")
public class RbacPerm extends BaseVO {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 类型 1一级菜单 2 二级菜单 3 权限
     */
    @TableField("type")
    private Integer type;

    /**
     * 父级id
     */
    @TableField("parent_id")
    private Integer parentId;

    /**
     * 权限名称
     */
    @TableField("name")
    private String name;

    /**
     * 权限code
     */
    @TableField("code")
    private String code;

    /**
     * 图标
     */
    @TableField("icon")
    private String icon;

    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     * 是否sop权限

     */
    @TableField("is_sop")
    private Integer isSop;

    /**
     * 状态
     */
    @TableField("status")
    private String status;


}
